// 会议文件接口
export interface MeetingFile {
  id: number;
  name: string;
  url: string;
  size: number;
  uploadTime: string;
}

// 会议接口
export interface Meeting {
    id: number;
    name: string;
    type: MeetingType;
    status: MeetingStatus;
    begin: string;        // 开始时间
    end: string;         // 结束时间
    location: string;
    description: string;
    coverImage: string;  // 封面图片
    agenda?: string;    // 议程
    browseCount?: number;      // 浏览次数
    goodCount?: number;        // 点赞次数
    files?: MeetingFile[];   // 会议相关文件
    isOnline: boolean;       // 是否线上会议
    videoUrl?: string;        // 会议视频URL
  }

export enum MeetingType {
    ALL = 'ALL',
    MAIN = 'MAIN',
    PARALLEL = 'PARALLEL',
    SCIENCE = 'SCIENCE',
    PRODUCT = 'PRODUCT',
    ECOLOGY = 'ECOLOGY'
  }
  
  export enum MeetingStatus {
    DRAFT = 'DRAFT',               // 草稿
    NOT_STARTED = 'NOT_STARTED',   // 未开始（已发布）
    IN_PROGRESS = 'IN_PROGRESS',   // 进行中
    FINISHED = 'FINISHED',         // 已结束
    CANCELLED = 'CANCELLED'        // 已取消
  }
export const mockMeetings: Meeting[] = [
  {
    id: 1,
    name: '2024西湖论剑大会主论坛',
    type: MeetingType.MAIN,
    status: MeetingStatus.NOT_STARTED,
    begin: '2024-06-01 09:00:00',
    end: '2024-06-01 17:00:00',
    location: '杭州国际会议中心',
    description: '西湖论剑大会年度主论坛，聚焦信息安全领域最新技术发展与趋势。',
    coverImage: 'https://picsum.photos/800/400',
    agenda: JSON.stringify([
      {
        id: 1,
        startTime: '09:00',
        endTime: '10:00',
        title: '开幕式',
        speaker: '张三',
        description: '大会开幕式及致辞'
      }
    ]),
    browseCount: 1200,
    goodCount: 350,
    isOnline: true,
    files: [
      {
        id: 1,
        name: '会议手册.pdf',
        url: 'https://example.com/file1.pdf',
        size: 1024 * 1024,
        uploadTime: '2024-05-01 10:00:00'
      }
    ],
    videoUrl: 'https://example.com/sample-video.mp4'
  },
  {
    id: 2,
    name: '云安全技术研讨会',
    type: MeetingType.PARALLEL,
    status: MeetingStatus.DRAFT,
    begin: '2024-06-02 13:30:00',
    end: '2024-06-02 17:30:00',
    location: '云栖小镇会议中心',
    description: '深入探讨云计算安全技术发展与实践经验。',
    coverImage: 'https://picsum.photos/800/400?random=2',
    isOnline: false,
    browseCount: 800,
    goodCount: 220
  },
  {
    id: 3,
    name: '网络安全科普讲座',
    type: MeetingType.SCIENCE,
    status: MeetingStatus.IN_PROGRESS,
    begin: '2024-05-15 09:00:00',
    end: '2024-05-16 17:00:00',
    location: '杭州图书馆报告厅',
    description: '面向公众的网络安全科普教育活动。',
    coverImage: 'https://picsum.photos/800/400?random=3',
    isOnline: true,
    browseCount: 500,
    goodCount: 180
  },
  {
    id: 4,
    name: '安全产品发布会',
    type: MeetingType.PRODUCT,
    status: MeetingStatus.FINISHED,
    begin: '2024-05-01 14:00:00',
    end: '2024-05-01 16:00:00',
    location: '西湖国宾馆',
    description: '发布最新的网络安全防护产品。',
    coverImage: 'https://picsum.photos/800/400?random=4',
    isOnline: false,
    browseCount: 1500,
    goodCount: 420
  },
  {
    id: 5,
    name: '生态合作论坛',
    type: MeetingType.ECOLOGY,
    status: MeetingStatus.CANCELLED,
    begin: '2024-06-05 09:00:00',
    end: '2024-06-05 17:00:00',
    location: '杭州东部软件园',
    description: '探讨网络安全生态建设与合作发展。',
    coverImage: 'https://picsum.photos/800/400?random=5',
    isOnline: true,
    browseCount: 300,
    goodCount: 80
  }
] 